<?php
$this->breadcrumbs=array(
	'Tagok'=>array('index'),
	$model->name,
);

$this->menu=array(
	array('label'=>'Tagok','url'=>array('index')),
	array('label'=>'Új tag','url'=>array('create')),
	array('label'=>'Szerkeszt','url'=>array('update','id'=>$model->id)),
	array('label'=>'Töröl','url'=>'#','linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Menedzselés','url'=>array('admin')),
);
?>

<h1><?php echo $model->name; ?></h1>
<hr />
<div class="row">
    <div class="span4">
        <?php echo CHtml::link(CHtml::image($model->getFileUrl('normal'), $model->name),'#modal', array('data-toggle'=>'modal')); ?>
        
        <?php $this->beginWidget('bootstrap.widgets.BootModal', array(
            'id'=>'modal',
            'htmlOptions'=>array('class'=>'hide'),            
        )); ?>
        
        <div class="modal-header">
            <a class="close" data-dismiss="modal">&times;</a>           
        </div>
        <div class="modal-body">
            <?php echo CHtml::image($model->getFileUrl('large')); ?>
        </div>        
        <?php $this->endWidget(); ?>
        
    </div>
    <div class="span8">
<?php $this->widget('ext.bootstrap.widgets.BootDetailView',array(
	'data'=>$model,
	'attributes'=>array(
		'name',
		'text',
		array(
            'label'=>'Aktív',
            'value'=>$model->active == '1' ? 'IGEN' : 'NEM'
        )
	),
)); ?>
    </div>
</div>
